{% extends "safeinside/base.html" %}
{% block title %}{% endblock %}
{% block content %}

<script type="text/JavaScript"> setTimeout("location.reload(true);", 30000); </script>
<script type='text/JavaScript'>for(i=0;i<document.all.tags('blink').length;i++){s=document.all.tags('blink')[i]; s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';}</script>
<style type="text/css">
 td.tdblue {color: #ffffff; background: #6699cc; font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; }
 td.tblue { color: #ffffff; background: #006699; font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; }
 td.tdred {FONT-WEIGHT: bold; FONT-SIZE: 14px; BACKGROUND: pink;  COLOR: #000000; FONT-FAMILY: Arial, sans-serif; }
</style>
{% if not error %}

<div class="row">
 <img src="/static/caspi_logo.jpg">
</div>

<table border=1>
 <tr>
  <td class="tblue col-md-2">Объект</td>
  <td class="tblue col-md-2">Последнее событие (минут назад)</td>
  <td class="tblue col-md-2">Уровень сигнала</td>
  <td class="tblue col-md-2">Оператор</td>
 </tr>
 <tr>
  <td class="tdblue col-md-2">{{ obj.caronline_login }}</td>
  {% ifequal status 'OFFLINE' %}
   <td class="tdred col-md-2">{{ status }}</td>
  {% else %}
   <td class="tdblue col-md-2">{{ status }}</td>
  {% endifequal %}
  <td class="tdblue col-md-2">{{ signal }}</td>
  <td class="tdblue col-md-2">{{ operator }}</td>
 </tr>
</table>
{% ifequal status 'OFFLINE' %}
 <img src="http://glonass-nw.ru/photo/flite.gif">
{%endifequal %}

{% else %}
<h3>Объект не найден или неверно введен пароль!</h3>
{% endif %}

{% endblock %}
